package com.project.controller;

import com.project.model.Reorder;
import com.project.service.GetStuidService;
import com.project.service.ShopToReorderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("/ShopToReorder")
public class ShopToReorderController {
	private ShopToReorderService shopToReorderService;
	
	public ShopToReorderService getShopToReorderService() {
		return shopToReorderService;
	}
	@Autowired
	public void setShopToReorderService(ShopToReorderService shopToReorderService) {
		this.shopToReorderService = shopToReorderService;
	}
	@RequestMapping("/insertShopToReorder")
	public String insertShopToReorder(String tid, String ttype, String uid, String stuid){
		tid="p01";
		ttype="1";
		uid="2";
		stuid="1508";
		return this.shopToReorderService.insertShopToReorder(tid, ttype, uid, stuid);
	}

}
